<?php
require_once 'Zend/Form/Element/Xhtml.php';

class Core_Form_Element_Link extends Zend_Form_Element_Xhtml
{
    /**
     * Default form view helper to use for rendering
     * @var string
     */
    public $helper = 'formLink';
 
    /**
     * Set href
     * 
     * @var string $href
     * @return MyApp_Form_Element_Link
     */
    public function setHref($href)
    {
        $this->href = $href;
 
        return $this;
    }
    
	/**
	 * Object initialization method.
	 */
	public function init()
	{
		$this->addDecorator( 'ViewHelper' );
		$this->addDecorator( 'HtmlTag', array( 'tag' => 'dd' ) );
		//$this->addDecorator( 'Label', array('requiredSuffix' => '<span class="red"> *</span>', 'tag' => 'dt', 'escape' => false ) );
	}
}